package com.dazhi.boot.web.embedded.tomcat.controller;

import com.dazhi.boot.web.embedded.tomcat.service.HelloService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class HelloServiceController {
    @Resource
    private HelloService helloService;
    @GetMapping
    public String hello(){
        helloService.sayHello();
        return "success";
    }
}
